package com.zelix;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.net.URL;
import java.util.ResourceBundle;
import javax.swing.JEditorPane;
import javax.swing.SwingUtilities;

public final class to {

    private static int a = 300;
    private static int b = 300;
    private static String c = z(z("DPC,\037YO"));
    private static String d = "";
    private static String e = "#";
    private static String f = z(z("\036WX-\007"));
    public static String g = z(z("DZT4DDZT4"));
    private static to h = new to();
    private static ResourceBundle i;
    private static s2 j;
    private String k;
    private u4 l;
    private tx m;
    public static String n = z(z("\000\017\034"));
    public static String o = z(z("\000\017\035"));
    public static String p = z(z("\000\017\036"));
    public static String q = z(z("\000\017\037"));
    public static String r = z(z("\000\017\030"));
    public static String s = z(z("\000\016\034"));
    public static String t = z(z("\000\016\035"));
    public static String u = z(z("\000\016\036"));
    public static String v = z(z("\000\016\037"));
    public static String w = z(z("\000\016\030"));
    public static String x = z(z("\000\016\031"));
    public static String y = z(z("\000\016\032"));
    public static String z = z(z("\000\016\033"));
    public static String A = z(z("\000\016\024"));
    public static String B = z(z("\000\016\025"));
    public static String C = z(z("\000\r\034"));
    public static String D = z(z("\000\r\035"));
    public static String E = z(z("\000\r\036"));
    public static String F = z(z("\000\r\037"));
    public static String G = z(z("\000\r\030"));
    public static String H = z(z("\000\r\031"));
    public static String I = z(z("\000\r\032"));
    public static String J = z(z("\000\r\033"));
    public static String K = z(z("\000\r\024"));
    public static String L = z(z("\000\r\025"));
    public static String M = z(z("\000\f\034"));
    public static String N = z(z("\000\f\035"));
    public static String O = z(z("\000\f\036"));
    public static String P = z(z("\000\f\037"));
    public static String Q = z(z("\000\f\030"));
    public static String R = z(z("\000\f\031"));
    public static String S = z(z("\000\f\032"));
    public static String T = z(z("\000\f\033"));
    public static String U = z(z("\000\f\024"));
    public static String V = z(z("`mi\026\"\177j\177\0378smi\005%"));
    public static String W = z(z("\177ts\0249yrs\0053ssy\004."));
    public static String X = z(z("dz\177\0244dme\r4ugo\f>tz"));
    public static String Y = z(z("cte\0204dps\016.hk"));
    public static String Z = z(z("s~b\003.|`h\t*|pk"));
    public static String ab = z(z("c|~\005.~`d\005'`"));
    public static String bb = z(z("q{h\037.h|`\0258ypb\037;qmm\r"));
    public static String cb = z(z("}ph\t-i`i\030(|j\177\t$~`|\0019qr"));
    public static String db = z(z("tz`\005?u`i\030(|j\177\t$~`|\0019qr"));
    public static String eb = z(z("sj~\022.~ks\0053ssy\023\"\177qs\020*b~a\023"));
    public static String fb = z(z("ug|\f*yqs\0053ssy\023\"\177qs\020*b~a"));
    public static String gb = z(z("ug|\f*yqs\023.|zo\024.t`i\030(|j\177\t$~`|\0019qr"));
    public static String hb = z(z("\177ts\0053ssy\004."));
    public static String ib = z(z("\177oi\0164cz`\005(dzh\037'ylx"));
    public static String jb = z(z("\177oi\0164q{h\0378usi\003?ypb"));
    public static String kb = z(z("\177oi\0164q{h\0378usi\003?ypb\037;|j\177"));
    public static String lb = z(z("\177oi\0164bza\017=u`\177\005'u|x\t$~"));
    public static String mb = z(z("\177oi\0164bza\017=u`\177\005'u|x\t$~`|\f>c"));
    public static String nb = z(z("\177ts\017;uq"));
    public static String ob = z(z("\177ts\0209\177|i\005/"));
    public static String pb = z(z("rmc\0278ums\006\"ush\037'ylx"));
    public static String qb = z(z("rmc\0278ums\r.dwc\0044|v\177\024"));
    public static String rb = z(z("rmc\0278ums\003$~lx\001%dls\f\"ck"));
    public static String sb = z(z("rmc\0278ums\003'ql\177\037#yz~\0019swu"));
    public static String tb = z(z("rmc\0278ums\003'ql\177\037;bp|\0059dvi\023"));
    public static String ub = z(z("rmc\0278ums\026\"uhs\003'ql\177"));
    public static String vb = z(z("rmc\0278ums\026\"uhs\006\"ush"));
    public static String wb = z(z("rmc\0278ums\026\"uhs\r.dwc\004"));
    public static String xb = z(z("swm\016,u`h\0058s"));
    public static String yb = z(z("bz\177\024$bzs\004.c|"));
    public static String zb = z(z("q|o\0058c`a\017/yye\0059c"));
    public static String Ab = z(z("`z~\006$brs\0249yr"));
    public static String Bb = z(z("cz`\005(d`o\b*~xi\037'\177xs\t%"));
    public static String Cb = z(z("cz`\005(d`o\b*~xi\037'\177xs\017>d"));
    public static String Db = z(z("`z~\006$brs\017)vj\177\003*dz"));
    public static String Eb = z(z("ssm\0238`~x\b4}lk"));
    public static String Fb = z(z("bza\017=u`j\022$}`o\f*cl|\001?x"));
    public static String Gb = z(z("}pz\0054eos\t%ose\023?"));
    public static String Hb = z(z("}pz\0054tp{\0164yqs\f\"ck"));
    public static String Ib = z(z("rmc\0278u`o\f*cl|\001?x"));
    public static String Jb = z(z("q{h\037(|~\177\023;qkd"));
    public static String Kb = z(z("czx\037(|~\177\023;qkd"));
    public static String Lb = z(z("`~~\001&uki\0224spa\020'uki"));
    public static String Mb = z(z("spb\024*yqe\016,oom\003 qxi\037;qmx\037$v`|\0019qr"));
    public static String Nb = z(z("spb\024*yqe\016,o|`\0018c`|\0019d`c\0064`~~\001&"));
    public static String Ob = z(z("ssm\0238oom\022?opj\037;qmm\r"));
    public static String Pb = z(z("}zx\b$t`|\0019d`c\0064`~~\001&"));
    public static String Qb = z(z("vvi\f/oom\022?opj\037;qmm\r"));
    public static String Rb = z(z("ssm\0238oly\006-ygs\020*bks\017-oom\022*}"));
    public static String Sb = z(z("ssm\0238`~x\b4}lk\037(x~b\007.|pk\037?b~b\023'qki"));
    public static String Tb = z(z("dmm\003.o|d\001%wz`\017,ok~\001%csm\024."));
    public static String Ub = z(z("swm\016,usc\0074vsh\037(x~b\007.|pk\037?b~b\023'qki"));
    public static String Vb = z(z("ssm\0238`~x\b4swg\037(x~b\007.|pk\037?b~b\023'qki"));
    public static String Wb = z(z("bz\177\025'dls\003#qqk\005'\177xs\0249qq\177\f*dz"));
    public static String Xb = z(z("rmc\0278u`o\b*~xi\f$w`x\022*~l`\001?u"));
    public static String Yb = z(z("dmm\0168|~x\0054swm\016,usc\0074dmm\0168|~x\005"));
    public static String Zb = z(z("rmc\0278u`n\031?u|c\004.o|d\001%wz`\017,ok~\001%csm\024."));
    public static String ac = z(z("rmc\0278u`n\031?u|c\004.opg\037(x~b\007.|pk\037?b~b\023'qki"));
    public static String bc = z(z("`~\177\024.o|d\001%wz`\017,ok~\001%csm\024."));
    public static String cc = z(z("sp|\0314swm\016,usc\0074dmm\0168|~x\005"));
    public static String dc = z(z("c~z\0054c|~\t;d"));
    public static String ec = z(z("c~z\0054ssm\0238ul"));
    public static String fc = z(z("ugo\f>cvc\0164qo|\f\"s~x\t$~`x\031;u"));
    public static String gc = z(z("sj~\022.~ks\0053ssy\004.oom\022*}"));
    public static String hc = z(z("ugo\f>tzs\020*stm\007.oqm\r.c``\t8d"));
    public static String ic = z(z("ugo\f>tzs\r*yqs\003'ql\177\037%qri\037'ylx"));
    public static String jc = z(z("dme\r4ugo\f>tzs\r*yqs\003'ql\177\037'ylx"));
    public static String kc = z(z("xz`\0204r~o\013"));
    public static String lc = z(z("xz`\0204vp~\027*b{"));
    public static String mc = z(z("xz`\0204uge\024"));
    private static String oc = z(z("DZT4DXKA,"));

//    public static boolean nc;


    private to() {
        String s1 = getClass().getName();
        String s3 = s1.substring(0, s1.lastIndexOf(".") + 1);
        k = "/" + s3.replace('.', '/');
        as as1 = zo.r;
        Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
        l = as1.b();
        if ((double) l.a() > dimension.getWidth() - 50D || (double) l.b() > dimension.getHeight() - 50D)
            l = new u4(0, 0);
        m = as1.c();
        if ((double) m.b() >= dimension.getWidth() - 25D)
            m = new tx((int) dimension.getWidth() - 50, m.a());
        if ((double) m.a() >= dimension.getHeight() - 25D)
            m = new tx(m.b(), (int) dimension.getHeight() - 50);
        if (m.b() < a)
            m = new tx(a, m.a());
        if (m.a() < b)
            m = new tx(m.b(), b);
        try {
            i = ResourceBundle.getBundle(s3 + c);
        }
        catch (Throwable throwable) {
        }
    }

    static void a(JEditorPane jeditorpane, String s1) {
        c(jeditorpane, s1);
    }

    public void a() {
        j = null;
    }

    public static void a(String s1) {
        a(s1, null);
    }

    public static void a(String s1, String s3) {
        if (j == null)
            j = new s2(h);
        j.a(b(s1, s3));
    }

    public u4 b() {
        return l;
    }

    public tx c() {
        return m;
    }

    public static String b(String s1) {
        if (i != null)
            try {
                return i.getString(s1);
            }
            catch (Throwable throwable) {
                return d;
            }
        else
            return d;
    }

    public static URL c(String s1) {
        return b(s1, null);
    }

    public static URL b(String s1, String s3) {
        URL url;
        StringBuffer stringbuffer = new StringBuffer();
        stringbuffer.append(h.k);
        if (s1 != null && s1.trim().length() > 0) {
            stringbuffer.append(s1.trim());
            stringbuffer.append(f);
        }
        if (s3 != null && s3.trim().length() > 0) {
            stringbuffer.append(e);
            stringbuffer.append(s3.trim());
        }
        url = h.getClass().getResource(stringbuffer.toString());
        return url;
    }

    public static void b(JEditorPane jeditorpane, String s1) {
        if (SwingUtilities.isEventDispatchThread()) {
            c(jeditorpane, s1);
        } else {
            uo uo1 = new uo(jeditorpane, s1);
            SwingUtilities.invokeLater(uo1);
        }
    }

    private static void c(JEditorPane jeditorpane, String s1) {
        jeditorpane.setContentType(oc);
        jeditorpane.setText(s1);
        jeditorpane.setCaretPosition(0);
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x6b;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x30;
                    break;
                case 1:
                    key = 63;
                    break;
                case 2:
                    key = 44;
                    break;
                case 3:
                    key = 64;
                    break;
                default:
                    key = 107;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
}